//
//  CS_Page_SpaceView.m
//  Pods
//
//  Created by 网新中研 on 2017/5/17.
//
//

#import "CS_Page_SpaceView.h"

@implementation CS_Page_SpaceView

-(NSInteger)viewType{
    return CSViewType_PageSpaceView;
}

+(id)page_SpaceView:(CGFloat)spaceSize{
    CS_Page_SpaceView *view = [CS_Page_SpaceView new];
    view.spaceSize = spaceSize;
    return view;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        _spaceSize = 20.0;
    }
    return self;
}

-(CGFloat)layoutView:(UIView *)superView primaryY:(CGFloat)primaryY{
    
    CGFloat needheight = 0.0;
    
    needheight = self.spaceSize;
    
    self.frame = CGRectMake(0, primaryY, kWindowW, needheight);
    self.backgroundColor = [UIColor clearColor];
    [superView addSubview:self];
    
    return primaryY + needheight;
    
}

@end
